import request from '@/utils/request';
import store from "@/store";
import Qs from 'qs'

const env = import.meta.env.MODE || 'development';
const prefix = '';

// cos 授权签名参数 /apiapp/v1/tencent/cos_auth
export function tencentCosAuthApi (data) {
  return request({
    url: `${prefix}/apiapp/v1/tencent/cos_auth`,
    method: 'post',
    data
  });
}

// 上传到cos
export function tencentCosUploadApi (url, data) {
  return request({
    url,
    method: 'post',
    data
  });
}
